@ECHO OFF
@ECHO Creating GeneratedTypedBAMAPI For Orchestrations
GenerateTypedBAMAPI "%CD%\BAMAPITool.xls" GenerateTypedBAMAPI.cs Orchestration
GenerateTypedBAMAPI "%CD%\BAMAPITool.xls" BufferedGenerateTypedBAMAPI.cs Buffered
GenerateTypedBAMAPI "%CD%\BAMAPITool.xls" DirectGenerateTypedBAMAPI.cs Direct

ECHO Now copying file over
ECHO copy GenerateTypedBAMAPI.cs "..\BTS Utilities\BAM\GenerateTypedBAMAPI.cs"
copy GenerateTypedBAMAPI.cs "..\BTS Utilities\BAM\GenerateTypedBAMAPI.cs"
copy BufferedGenerateTypedBAMAPI.cs "..\BTS Utilities\BAM\BufferedGenerateTypedBAMAPI.cs"
copy DirectGenerateTypedBAMAPI.cs "..\BTS Utilities\BAM\DirectGenerateTypedBAMAPI.cs"


REM Cleanup
del GenerateTypedBAMAPI.cs

ECHO --------------------------------------------------------
ECHO Creating GeneratedTypedBAMAPI for Buffered Writes
GenerateTypedBAMAPI "%CD%\BAMAPITool.xls" GenerateTypedBAMAPI.cs Buffered

ECHO --------------------------------------------------------
ECHO Creating GeneratedTypedBAMAPI For Testing Applications
ECHO Now copying file over
ECHO copy GenerateTypedBAMAPI.cs "..\BTSUtilityTester\GenerateTypedBAMAPI.cs"
copy GenerateTypedBAMAPI.cs "..\BTSUtilityTester\GenerateTypedBAMAPI.cs"
del GenerateTypedBAMAPI.cs

ECHO --------------------------------------------------------
ECHO Copy For Pipeline - Direct Writes
GenerateTypedBAMAPI "%CD%\BAMAPITool.xls" GenerateTypedBAMAPI.cs Direct
ECHO Now copying file over
ECHO copy GenerateTypedBAMAPI.cs "..\HIPAA Pipelines\BAM\GenerateTypedBAMAPI.cs"
copy GenerateTypedBAMAPI.cs "..\HIPAA Pipelines\BAM\GenerateTypedBAMAPI.cs"
@ECHO OFF

REM Cleanup
del GenerateTypedBAMAPI.cs
ECHO --------------------------------------------------------
ECHO Please ensure that all files copied correctly.  This can be caused by not having teh GeneratedTypedBAMAPI.cs files checked out in source control"
ECHO --------------------------------------------------------

pause


